-
Home
-
Leat
-
1.0.1
-
Code
-
Classes
- PromotionRulesService
| Total Complexity |
17 |
| Dependencies |
5 |
| Dependents |
8 |
| Total lines |
165 |
| Lines of code |
56 |
| Logical lines of code |
26 |
| Comment lines |
74 |
| Methods |
11 |
| Properties |
2 |
Methods 11
| Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
| get_coupons_by_user_id() |
S |
55 |
5 |
20 |
| get_discount_type() |
S |
67 |
3 |
8 |
| __construct() |
S |
76 |
1 |
4 |
| get_by_id() |
S |
80 |
1 |
3 |
| get_by_uuid() |
S |
80 |
1 |
3 |
| get_rules() |
S |
80 |
1 |
3 |
| get_active_rules() |
S |
81 |
1 |
3 |
| create_or_update() |
S |
80 |
1 |
3 |
| delete() |
S |
81 |
1 |
3 |
| handle_duplicates() |
S |
81 |
1 |
3 |
| delete_with_empty_uuid() |
S |
81 |
1 |
3 |